package com.reason.user.service.impl;

import com.reason.user.dao.LifeStyleMapper;
import com.reason.user.pojo.LifeStyle;
import com.reason.user.service.LifeStyleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;


/**
 * @author  yulongjun
 * @date 2020/6/29 10:42 下午
 */
@Service
public class LifeStyleServiceImpl implements LifeStyleService {

    @Autowired
    private LifeStyleMapper lifeStyleMapper;

    @Override
    public List<LifeStyle> findAll() {
        return lifeStyleMapper.selectList(null);
    }

    @Override
    public LifeStyle findByID(Long id) {
        return lifeStyleMapper.selectById(id);
    }
}
